package NsingCHM.Controls;

//using System;
//using System.Web.UI;
//using System.Web.UI;
//using System.Collections.Specialized;
//using System.Text;
//using System.IO;
//using System.Web.UI.WebControls;
//using System.Data;
//using System.Security.Cryptography;
//Tangible_doc_comment_start 
//Tangible_doc_comment_body �Կؼ������
//Tangible_doc_comment_end
public class TheDataGrid
{
    public TheDataGrid()
    {
    }
    //Tangible_doc_comment_start 
    //Tangible_doc_comment_body ����DataGrid �� ID �ҵ� �� DataGrid
    //Tangible_doc_comment_body 
    //Tangible_doc_comment_body @param DGName
    //Tangible_doc_comment_body @return 
    //Tangible_doc_comment_end
    public final DataGrid FindDGByName(String DGName)
    {
        System.Web.UI.Page Mypage=(System.Web.UI.Page) System.Web.HttpContext.Current.Handler;
        DataGrid dg = (DataGrid)Mypage.FindControl(DGName);
        return dg;
    }



    public static void DatagridAddTrOverColor(System.Web.UI.WebControls.DataGridItemEventArgs e)
    {

        if (e.Item.ItemType==ListItemType.Item)
        {
��
{
���� e.Item.Attributes.Add("onmouseout","this.style.backgroundColor=\""+e.Item.Style["BACKGROUND-COLOR"]+"\"");
���� e.Item.Attributes.Add("onmouseover","this.style.backgroundColor=\""+MOLE.UIResx.TrOverColor+"\"");
��
}
        }
if (e.Item.ItemType==ListItemType.AlternatingItem)
{
��
{
            e.Item.Attributes.Add("style","background-color: #F7F7F7;");

���� e.Item.Attributes.Add("onmouseout","this.style.backgroundColor=\""+"#F7F7F7"+"\"");
 ���� e.Item.Attributes.Add("onmouseover","this.style.backgroundColor=\""+ MOLE.UIResx.TrOverColor +"\"");
�� }
    }
}

    public static void DatagridAddTrOverColor2(System.Web.UI.WebControls.DataGridItemEventArgs e)
    {

        if (e.Item.ItemType==ListItemType.Item || e.Item.ItemType==ListItemType.AlternatingItem)
        {
��
{
���� e.Item.Attributes.Add("onmouseout","this.style.backgroundColor=\""+e.Item.Style["BACKGROUND-COLOR"]+"\"");
���� e.Item.Attributes.Add("onmouseover","this.style.backgroundColor=\""+MOLE.UIResx.TrOverColor+"\"");
�� �� }
    }
        }



}
}
